package com.hue.springbootsecurity.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 姚凤桥
 * @Date: 2022/5/21 10:09
 * @Description:
 */
@RestController
public class LoginController {
    @PostMapping("/success")
    public String success() {
        return "登录成功！";
    }

    @PostMapping("/fail")
    public String fail() {
        return "登录失败！";
    }
}
